<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <title>注册页面</title>
</head>
<body>
<h1>银行管理系统</h1>
<form th:action="@{/doRegister}">
    <h4 style="color: red" th:text="${msg}"></h4>
    <p>请输入用户名：<input typew="text" th:name="userName"></p>
    <p>请输入密码：<input type="password" th:name="password"> </p>
    <p>请选择身份：<select th:name="identity">
            <option value="1">管理员</option>
            <option value="0">用户</option>
        </select></p>
    <button type="submit" >注册</button>&nbsp;&nbsp;
    <input type="button" th:value="返回登录页面" onclick="window.location='/login'">

</form>
</body>
</html>